<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

// Route::resource('users', 'index/index');
Route::get('home','index/Index/index');
Route::get('del/:id$','index/Index/del');
Route::post('add','index/Index/add');
Route::get('cha/:id$','index/Index/cha');
Route::post('edit/[:id]$','index/Index/edit');

Route::get('admin$','admin/Index/index');
Route::resource('power','admin/Power');
Route::resource('limits','admin/Limits');
Route::get('login','admin/Login/index');
Route::post('dologin','admin/Login/login');
Route::get('exitlogin', 'admin/Login/exitlogin');
Route::post('qwe/:id','admin/Power/qwe');
Route::post('qwer/:id','admin/Actor/qwer');
Route::resource('actor','admin/Actor');

Route::resource('help','help/Help');
Route::post('helpuse','help/Help/user');
Route::get('share','help/Help/share');
Route::post('assistance','help/Help/assistance');
Route::any('new','help/Help/xin');


//用户管理
Route::resource('indexUser','admin/User');
// 后台图片的资源管理
Route::resource('photo','admin/Photo');
// 更新图片的路由
Route::post('data', 'admin/Photo/data');
// 后台垃圾管理
Route::resource('bin', 'admin/Bin');
Route::post('bin/my_save', 'admin/bin/save');

// 前台登录页面
Route::get('indexLogin','index/Login/index');

Route::post('goLogin','index/Login/dologin');

// 前台用户注册
Route::get('reginster','index/Reginster/index');

Route::post('goreginster','index/Reginster/save');

// 前台分类路由
Route::get('classify','index/Classify/index');
// 前台图片路由
Route::get('picture','index/Picture/index');
// 前台内容详情
Route::get('blog','index/Blog/index');
// 前台个人中心
Route::get('contact','index/Contact/index');


// 新闻中心
Route::get('news','index/Index/phoneneww');
// 会员记录管理
Route::resource('logsheet','admin/logsheet');
// 新闻管理
Route::resource('phonenew','admin/PhoneNew');
Route::post('dataa','admin/PhoneNew/data');



Route::resource('member','admin/Member');

Route::resource('serve','admin/Serve');

Route::post('member/:id','admin/Member/ad');

Route::post('mqwer/:id','admin/Member/mqwer');

Route::resource('links','admin/Links');

// 后台图片的资源管理

Route::resource('serve','admin/Serve');

// 更新图片的路由
Route::post('data/:id', 'admin/Serve/data');





// return [
//     // '__pattern__' => [
//     //     'name' => '\w+',
//     // ],
//     // '[hello]'     => [
//     //     ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
//     //     ':name' => ['index/hello', ['method' => 'post']],
//     // ],

// ];

